import http from "../../request.js";

//购物车2.获取商品详情数据
function getPreOrderById(orderId) {
	return http({
		url:`/lejuClient/order/getPreOrderById/${orderId}`
	})
}

// 获取地址列表
function findAllAddress() {
	return http({
		url:`/lejuClient/address/findAllAddress`
	})
}

// 购物车3.提交确认订单
function addConfirmOrder(data) {
	return http({
		url:`/lejuClient/order/addConfirmOrder`,
		method:'post',
		data
	})
}

export { getPreOrderById , findAllAddress , addConfirmOrder }